package org.springframework.test.study.demo;



import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.study.entity.Persion;
import org.springframework.test.study.service.IOCService;

public class SpringStudyAnnotationMain {
	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext("org.springframework.test.study.service.config");
		IOCService iocService=context.getBean(IOCService.class);
		System.out.println(iocService.sayHello());
	}
}